adTempus API
PreviousUpNext
IApplicationIntegration::ReplaceVariableTokens Method

Replaces environment and job variable tokens in a string.

C++
HRESULT ReplaceVariableTokens(BSTR sourceString, [out,retval] BSTR * result);
C#
ReplaceVariableTokens(String sourceString, [out,retval] BSTR result);
Visual Basic
Sub ReplaceVariableTokens(sourceString As String, result As [out,retval] BSTR)
Parameters 
Description 
[in] BSTR sourceString 
The string to replace tokens in. 
[out,retval] BSTR * result 
The string with tokens replaced. 

Tokens of the form "%sometoken%" are replaced with the value of the environment variable or job variable named "sometoken". If no corresponding value is found, the token is not replaced.

adTempus API Reference version 3.0.0.0, revised 10/30/2008